package com.mystery.service.impl;

import com.mystery.mapper.FitnessDiaryMapper;
import com.mystery.pojo.FitnessDiary;
import com.mystery.service.FitnessDiaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class FitnessDiaryServiceImpl implements FitnessDiaryService {

    @Resource
    private FitnessDiaryMapper fitnessDiaryMapper;

    @Override
    public int add(long userId, String diary) {
        return fitnessDiaryMapper.add(userId,diary);
    }

    @Override
    public List<FitnessDiary> findAllById(long id) {
        return fitnessDiaryMapper.findAllById(id);
    }
}
